<?php


namespace app\api\controller;


use app\api\model\Php1;



class Base
{

    public function hello()
    {
        $address = input('get.address');
        $posi = input('get.posi');
        echo 'TP方式获取GET参数：' .  $address;
        echo '<br/>';
        echo 'TP方式获取GET参数：' .  $posi;

        $data = array();
        $data['address'] = $address;
        $data['posi'] = $posi;
        $data['time'] = time();

        $PhpModel = new Php1();
        $PhpModel->insert($data);
        echo '<br/>';
        echo $PhpModel->getLastSql();
    }

}